import java.util.Scanner;

public class a065_提款卡密碼 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String input, output;
		char each_str_0, each_str_1;
		
		while(sc.hasNext()) {
			input = sc.nextLine();
			
			output = "";			
			for(int i = 0; i <input.length() - 1; i++) {
				each_str_0 = input.charAt(i);
				each_str_1 = input.charAt(i + 1);
				
				output += Integer.toString((int)Math.abs(each_str_0 - each_str_1));
			}
			
			System.out.println(output);
		}
	}
	
}